﻿@using TimeTravel.Components;
@using TimeTravel.Components.Enumeration
@using TimeTravel.Extensions
@{
    ViewBag.Title = "Index";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
@section Head_Section
{
    @{
        Html.AppendResFile(ResourceType.StyleSheet, "[Content/Styles/Default/jquery.page,main],[Content/Library/Default/Bootstrap/css/bootstrap.min]");
        Html.AppendResFile(ResourceType.StyleSheet, "[Content/Library/Default/Fancybox/jquery.fancybox]");
    }
}
@section Foot_Section
{
    @{
        Html.AppendResFile(ResourceType.Script, "[Content/Scripts/Default/jquery.ui.min,jquery.page],[Content/Library/Default/Bootstrap/js/bootstrap.min]");
        Html.AppendResFile(ResourceType.Script, "[Content/Library/Default/Fancybox/jquery.fancybox.pack]");
        @Html.RenderResFile(ResourceType.Script)
    }
    
    <!--[if IE 6]>
        <script type="text/javascript">
            $(function() {
                $("#ie6-hint").css("display", "block");
            });
        </script>
    <![endif]-->
    
    <script type="text/javascript">
        $(function () {
            $.fn.fullpage({
                slidesColor: ['#f7f7f9', '#f7f7f9', '#f7f7f9', '#353b49'],
                anchors: ['about', 'product', 'announcement', 'contract'],
                menu: '#menu',
                loopBottom: true,
                onLeave: function (index, direction) {
                    $.fancybox.close(); //开始滚动时关闭产品详细信息窗口
                }
            });

            $("#moveSlideDown").on("click", function () {
                $.fn.fullpage.moveSlideDown();
            });

            $("#nav-brand-log").on("click", function () {
                $.fn.fullpage.moveToSlide('about');
            });

            $("#products-content").find("a.btn").fancybox({
                maxWidth: 800,
                maxHeight: 600,
                fitToView: false,
                width: '70%',
                height: '70%',
                autoSize: false,
                closeBtn: false,
                title: "产品详细信息",
                closeClick: true,
                openEffect: 'none',
                closeEffect: 'none'
            });

        });
    </script>
}
@{
    
    Html.RenderAction("NavMenu", "PartialView");

    Html.RenderAction("About", "PartialView");

    Html.RenderAction("Product", "PartialView");

    Html.RenderAction("Announcement", "PartialView");

    Html.RenderAction("Contact", "PartialView");
}
